//
//  UIImage+Tint.h
//  Battle
//
//  Created by YinDongbing on 16/6/11.
//  Copyright © 2016年 lepin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Tint)

- (UIImage *)imageWithCustomTintColor:(UIColor *)tintColor;
- (UIImage *)scaleWithFixedWidth:(CGFloat)width;
+ (NSData *)compressionimage:(UIImage *)image maxSize:(CGFloat)maxSize;
+ (UIImage *)screenshotsWithFrame:(CGRect)frame;
+ (UIImage *)reSizeImage:(UIImage *)image toSize:(CGSize)reSize;
+ (UIImage *)imageCompressFitSizeScale:(UIImage *)sourceImage targetSize:(CGSize)size;

//截图图片指定位置
- (UIImage *)clipWithImageRect:(CGRect)clipRect;
//检测图片白边的位置
- (NSInteger)checkImageWhiteSide;
- (UIImage *)normalizedImage:(UIImage *)image;

@end
